import { ApiProperty } from '@nestjs/swagger';

export class CreateUserDto {
    @ApiProperty({
        example: 'user1234567',
        description: '用户账号',
        required: true,
    })
    account: string;
    @ApiProperty({
        example: '测试账户',
        description: '用户账号',
        required: true,
    })
    userName: string;
    @ApiProperty({
        example: 'a123456',
        description: '密码',
        required: true,
    })
    password: string;
    @ApiProperty({
        example: '15802980231',
        description: '手机号',
        required: false,
    })
    phoneNumber?: string;
}
